package com.netease.image.video;

import android.graphics.Bitmap;
import android.os.Process;

class ah
  implements Runnable
{
  private ah(c paramc)
  {
  }

  private Runnable a(int paramInt)
  {
    return new r(this, paramInt);
  }

  private Runnable a(int paramInt1, int paramInt2, boolean paramBoolean, Bitmap paramBitmap, int paramInt3)
  {
    return new s(this, paramInt3, paramInt1, paramInt2, paramBitmap, paramBoolean);
  }

  private void a()
  {
    int i = c.f(this.a).b();
    int[] arrayOfInt = c.b(this.a).b();
    int j = 0;
    if (j < arrayOfInt.length)
      if (!c.c(this.a));
    while (true)
    {
      label44: return;
      int k = arrayOfInt[j];
      int m = k + c.e(this.a);
      if ((m < 0) || (m >= i) || (!c.b(this.a).b(c.e(this.a), k)));
      while (true)
      {
        j++;
        break;
        a locala = c.f(this.a).a(m);
        if (locala == null)
          continue;
        if (c.c(this.a))
          break label44;
        Bitmap localBitmap = locala.f();
        if (localBitmap == null)
          continue;
        if (c.c(this.a))
        {
          localBitmap.recycle();
          break label44;
        }
        Runnable localRunnable = a(c.e(this.a), k, false, localBitmap, c.a(this.a));
        c.g(this.a).a(localRunnable);
      }
      c.g(this.a).a(a(c.a(this.a)));
    }
  }

  public void run()
  {
    Process.setThreadPriority(10);
    while (true)
    {
      synchronized (this.a)
      {
        if ((!c.c(this.a)) && (!c.d(this.a)) && (c.e(this.a) != -1))
          break label107;
        if (c.d(this.a))
          return;
        c.a(this.a, true);
        this.a.notify();
      }
      try
      {
        this.a.wait();
        c.a(this.a, false);
        continue;
        localObject1 = finally;
        monitorexit;
        throw localObject1;
      }
      catch (InterruptedException localInterruptedException)
      {
        while (true)
          localInterruptedException.printStackTrace();
      }
      label107: monitorexit;
      a();
      synchronized (this.a)
      {
        c.a(this.a, -1);
      }
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.image.video.ah
 * JD-Core Version:    0.6.0
 */